# -*- coding: utf-8 -*-
"""
# @created on : 9月 2021/9/27 12:52
# @author     : kevin
# @file       : assert.py
# @software   : PyCharm
# @project    : auto_keyword_data


@license: (C) Copyright 2019-2025, Corporation Limited.
@desc:
"""
from base.web_key import WebKey


class MyAssert:
    def __init__(self):
        self.webkey = WebKey

    def assert_location(self):
        """
        判断当前在正确的页面
        :return:
        """
        pass

    def assert_title(self):
        """
        检查当前页面的title是否正确
        :return:
        """
        pass

    def assert_value(self):
        """
        检查input的值，checkbox或radio，有值为on，无值为off
        :return:
        """
        pass

    def assert_selected(self):
        """
        检查select的下拉菜单中选中的是否正确
        :return:
        """
        pass

    def assert_text(self, **kwargs):
        """
        检查指定元素的文本
        :return:
        """
        flg = False


    def assert_text_present(self):
        """
        检查在当前给用户显示的页面上是否有出现指定的文本
        :return:
        """
        pass

    def assert_text_not_present(self):
        """
        检查在当前给用户显示的页面上是否没有出现指定的文本
        :return:
        """
        pass

    def assert_attribute(self):
        """
        检查当前元素的属性值
        :return:
        """
        pass

    def assert_table(self):
        """
        检查table里的某个cell的值
        :return:
        """
        pass

    def assert_editable(self):
        """
        检查指定的input是否可以编辑
        :return:
        """
        pass

    def assert_not_editable(self):
        """
        检查指定的input是否不可以编辑
        :return:
        """
        pass

    def assert_alert(self):
        """
        检查是否有产生带指定message的alter对话框
        :return:
        """
        pass

    def verify_title(self):
        """
        检查预期的页面标题
        :return:
        """
        pass

    def verify_text_present(self):
        """
        验证预期的文本是否在页面的某个位置上
        :return:
        """
        pass

    def verify_element_present(self):
        """
        验证预期的UI元素，它的HTML标签的定义，是否在当前网页上
        :return:
        """
        pass

    def verify_text(self):
        """
        核实预期的文本和相应的HTML标签是否都存在于页面上
        :return:
        """
        pass

    def verify_table(self):
        """
        验证表的预期内容
        :return:
        """
        pass

    def wait_for_page_load(self):
        """
        暂停执行，知道预期的新的页面加载
        :return:
        """
        pass

    def wait_for_element_present(self):
        """
        等待检验某元素的存在，为真则执行
        :return:
        """
        pass
